﻿using NExt.Core.Model.Base;

namespace NExt.form
{
    public class TriggerField : TriggerField<TriggerFieldEvents>
    {
    }

    public abstract class TriggerField<TEvents>: TextField<TEvents>
        where TEvents : TriggerFieldEvents, new()
    {
        public bool? hideTrigger { get; set; }
        public string triggerClass { get; set; }
    }

    public class TriggerFieldEvents: TextFieldEvents
    {
        public IScript onTriggerFired { get; set; }
    }
}
